
import { request } from '@umijs/max';
import qs from 'qs';
import { Constants } from "@/constants";


export async function edit(body: Record<string, any>, options?: { [key: string]: any }) {
  return request(Constants.baseURL+'api/config/edit', {
    method: 'POST',
    data: qs.stringify({
      ...body,
    }),
    ...(options || {}),
  });
}
export async function save(body: Record<string, any>, options?: { [key: string]: any }) {
  return request(Constants.baseURL+'api/config/save', {
    method: 'POST',
    data: qs.stringify({
      ...body,
    }),
    ...(options || {}),
  });
}
